//
//  DYRecordInfoVC.m
//  kafuMerchant
//
//  Created by 帝云科技 on 2018/9/19.
//  Copyright © 2018年 帝云科技. All rights reserved.
//

#import "DYRecordInfoVC.h"
#import "DYRecordInfoCell.h"

@interface DYRecordInfoVC ()

@property (nonatomic,strong)NSArray *titleArray;
@property (nonatomic,strong)NSArray *contentArray;

@end

@implementation DYRecordInfoVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title=@"备案信息";
}
-(void)dy_initData
{
    [super dy_initData];
    
    self.titleArray=@[@"企业名称",@"企业类别",@"企业备案编码",@"所属行业",@"备案机关名称"];
    self.contentArray=@[@"杭州家乐福超市",@"规模发卡",@"43453453A3453",@"零售业",@"杭州市贸易局"];
}
-(void)dy_initUI
{
    [super dy_initUI];
    
    self.tableView.backgroundColor=WhiteColor;
    
    [self.tableView registerClass:[DYRecordInfoCell class] forCellReuseIdentifier:@"DYRecordInfoCell"];
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return self.titleArray.count;
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return BILIHEIGHT(58);
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    DYRecordInfoCell *cell=[tableView dequeueReusableCellWithIdentifier:@"DYRecordInfoCell" forIndexPath:indexPath];
    cell.titleLabel.text=self.titleArray[indexPath.row];
    cell.contentLabel.text=self.contentArray[indexPath.row];
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
